//
//  CenterCollectionViewCell.m
//  HandWork
//
//  Created by 王阳阳 on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CenterCollectionViewCell.h"

@implementation CenterCollectionViewCell
- (void)deall
{
    [_bgimg release];
    [_namelabel release];
    [super dealloc];
}
#pragma mark - 初始化
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}
- (void)creat
{
    self.bgimg = [[UIImageView alloc]init];
    [self.contentView addSubview:self.bgimg];
    [_bgimg release];
    self.namelabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.namelabel];
    [_namelabel release];
}
#pragma mark - 布局
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.bgimg.frame = CGRectMake(10, 10, 60, 60);
    self.namelabel.frame = CGRectMake(10, 70, 60, 30);
    self.namelabel.font = [UIFont systemFontOfSize:14];
   
    self.namelabel.textAlignment = NSTextAlignmentCenter;

}

@end
